XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
Loader of shared libraries (e.g. wolf plugins) with dlopen.
More...
#include <core/utils/loader.h>
|
| | Loader (int flags=RTLD_LAZY) |
| | Constructor from the dlopen flags, loading the core plugin. More...
|
| |
| | ~Loader () |
| | Destructor, closing all the loaded libraries. More...
|
| |
| void | load (std::string _libname_with_so) |
| | Loads a library (if not loaded) More...
|
| |
| void | loadPlugin (std::string _plugin) |
| | Loads the library of a wolf plugin ('libwolf<plugin>') More...
|
| |
| void | close (std::string _libname_with_so) |
| | Closes a loaded library. More...
|
| |
| void | closePlugin (std::string _plugin) |
| | Closes the library of a wolf plugin. More...
|
| |
| void * | isLoaded (std::string _libname_with_so) const |
| | Returns the handle of a library if it is loaded (nullptr otherwise) More...
|
| |
| void * | isLoadedPlugin (std::string _plugin) const |
| | Returns the handle of the library of a wolf plugin if it is loaded (nullptr otherwise) More...
|
| |
| void | searchAndLoadPlugins (const YAML::Node &_node) |
| | Loads the plugins of all the 'plugin' fields of a YAML node. More...
|
| |
| size_t | size () const |
| | Returns the number of loaded libraries. More...
|
| |
|
| static std::set< std::string > | searchPlugins (const YAML::Node &_node, std::list< YAML::Node > &_visited_nodes) |
| | Returns the values of all the 'plugin' fields of a YAML node. More...
|
| |
| static std::set< std::string > | searchFieldsRecursive (const YAML::Node &_node, std::list< YAML::Node > &_visited_nodes, const std::string &field) |
| | Returns the values of all the fields with a given name of a YAML node, recursively (skipping visited nodes) More...
|
| |
Loader of shared libraries (e.g. wolf plugins) with dlopen.
◆ Loader()
| wolf::Loader::Loader |
( |
int |
flags = RTLD_LAZY | ) |
|
Constructor from the dlopen flags, loading the core plugin.
◆ ~Loader()
| wolf::Loader::~Loader |
( |
| ) |
|
Destructor, closing all the loaded libraries.
◆ close()
| void wolf::Loader::close |
( |
std::string |
_libname_with_so | ) |
|
◆ closePlugin()
| void wolf::Loader::closePlugin |
( |
std::string |
_plugin | ) |
|
Closes the library of a wolf plugin.
◆ isLoaded()
| void * wolf::Loader::isLoaded |
( |
std::string |
_libname_with_so | ) |
const |
Returns the handle of a library if it is loaded (nullptr otherwise)
◆ isLoadedPlugin()
| void * wolf::Loader::isLoadedPlugin |
( |
std::string |
_plugin | ) |
const |
Returns the handle of the library of a wolf plugin if it is loaded (nullptr otherwise)
◆ load()
| void wolf::Loader::load |
( |
std::string |
_libname_with_so | ) |
|
Loads a library (if not loaded)
◆ loadPlugin()
| void wolf::Loader::loadPlugin |
( |
std::string |
_plugin | ) |
|
Loads the library of a wolf plugin ('libwolf<plugin>')
◆ searchAndLoadPlugins()
| void wolf::Loader::searchAndLoadPlugins |
( |
const YAML::Node & |
_node | ) |
|
Loads the plugins of all the 'plugin' fields of a YAML node.
◆ searchFieldsRecursive()
| std::set< std::string > wolf::Loader::searchFieldsRecursive |
( |
const YAML::Node & |
_node, |
|
|
std::list< YAML::Node > & |
_visited_nodes, |
|
|
const std::string & |
field |
|
) |
| |
|
static |
Returns the values of all the fields with a given name of a YAML node, recursively (skipping visited nodes)
◆ searchPlugins()
| std::set< std::string > wolf::Loader::searchPlugins |
( |
const YAML::Node & |
_node, |
|
|
std::list< YAML::Node > & |
_visited_nodes |
|
) |
| |
|
static |
Returns the values of all the 'plugin' fields of a YAML node.
◆ size()
| size_t wolf::Loader::size |
( |
void |
| ) |
const |
Returns the number of loaded libraries.
◆ flags_
◆ name_resources_
| std::map<std::string, void*> wolf::Loader::name_resources_ |
|
protected |
Loaded libraries: dlopen handles indexed by library name.
The documentation for this class was generated from the following files: